﻿// ------------------------------------------------------------------------------------
//      Copyright (c) 2013 uhavemyword@gmail.com. All rights reserved.
//      Created by Ben at 1/3/2013 4:23:00 PM
// ------------------------------------------------------------------------------------

namespace CP.NLayer.Client.WpfClient.Common
{
    using CP.NLayer.Models.Entities;
    using Telerik.Windows.Controls;

    public static class GlobalObjects
    {
        private static Theme _currentTheme;

        public static User CurrentUser { get; set; }

        // http://www.telerik.com/help/wpf/3aafd588-ead6-4805-9778-1147d7014150.html
        public static Theme CurrentTheme
        {
            get
            {
                if (_currentTheme == null)
                {
                    _currentTheme = new MetroTheme();
                }
                return _currentTheme;
            }
            set
            {
                _currentTheme = value;
                StyleManager.ApplicationTheme = _currentTheme;
            }
        }
    }
}
